<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发送邮件报告</title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://pic2.58.com/n/tuan/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/javascript/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/javascript/report/Date.js"></script>
<script type="text/javascript" src="/javascript/jquery.form.js"></script>
<script type="text/javascript" src="/javascript/ajaxfileupload.js"></script>

<script >
	$(function(){$("#sendorday").click(function(){ 
				jQuery.ajax({
        			url:"/ors/sendemail",
            		type:"post",
            		async:false,
					dataType:"json",
            		data:{"type":14,"searchDate":$("#date_orday").val()},
            		success:function(data){
                		if(data.result == 0){
							alert("发送失败！");
						}else if(data.result == 1){
							alert("发送成功！");
						}
            		}
            	});	 
		})
	})
	
	
	$(function(){$("#sendjxydt").click(function(){ 
				jQuery.ajax({
        			url:"/ors/sendemail",
            		type:"post",
            		async:false,
					dataType:"json",
            		data:{"type":48,"searchDate":$("#date_jxydt").val()},
            		success:function(data){
                		if(data.result == 0){
							alert("发送失败！");
						}else if(data.result == 1){
							alert("发送成功！");
						}
            		}
            	});	 
		})
	})
	
	$(function(){$("#sendgj").click(function(){ 
				jQuery.ajax({
        			url:"/ors/sendemail",
            		type:"post",
            		async:false,
					dataType:"json",
            		data:{"type":49,"searchDate":$("#date_gj").val()},
            		success:function(data){
                		if(data.result == 0){
							alert("发送失败！");
						}else if(data.result == 1){
							alert("发送成功！");
						}
            		}
            	});	 
		})
	})
	
</script>

</head>
<body>
<div class="lr_both">
<div class="right_conts">
  <div class="mg_tt">
    <div class="right_search">
      <div class="rs_title_bg">
        <h2 class="rs_title">发送邮件报告</h2>
      </div>
    </div>
	</br>
	</br>
	
	
	<form id="sendemialform" name="sendemialform" action="" method="post">
    <div class="table_div" align="center">
	  <input type="hidden" id="share" name="share" value="0" />
      <table class="sj_tl"  width="70%" border="0" cellspacing="0" cellpadding="0">
		<tr>
          <th align="center" colspan="3">邮件列表</th>
		</tr>
			<tr>
				<td align="center" >在线收入汇总日报</td>
				<td align="center" >
					日期:&nbsp;<input  type="text" id="date_orday" style="width:150px" name="date_orday" class="Wdate" value="" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
				</td>
				<td align="center" >
					<input type="submit" id="sendorday"  name="sendorday"  value="发送"/>
				</td>
			</tr>
			
			<tr>
				<td align="center" >驾校一点通收入日报</td>
				<td align="center" >
					日期:&nbsp;<input  type="text" id="date_jxydt" style="width:150px" name="date_jxydt" class="Wdate" value="" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
				</td>
				<td align="center" >
					<input type="submit" id="sendjxydt"  name="sendjxydt"  value="发送"/>
				</td>
			</tr>
			
			<tr>
				<td align="center" >赶集联盟收入日报</td>
				<td align="center" >
					日期:&nbsp;<input  type="text" id="date_gj" style="width:150px" name="date_gj" class="Wdate" value="" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
				</td>
				<td align="center" >
					<input type="submit" id="sendgj"  name="sendgj"  value="发送"/>
				</td>
			</tr>
	 </table>
		</br>
	  <table class="sj_tl"  width="70%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
          <th align="center" colspan="2">
			<input type="reset"    value="重置"/>
		  </th>
		</tr>
      </table>
    </div>
	</form>
  </div>

</div>
</div>
</body>
</html>
